<?php if (count($schema_list) > 0) {
	$cnt = 0;
	foreach ($schema_list as $schema) {
		$status_title = '-';
		$status_color = '#000';
		$class_name = ' list_item_opened';
		if (1 == intval($schema['status_id'])) {
			$status_title = 'Opened';
		} else if (2 == intval($schema['status_id'])) {
			$status_title = 'Closed';
			$status_color = '#aaa';
			$class_name = ' list_item_closed';
		} ?>
		<div id="list-<?php echo $schema['id']; ?>" class="list_item_list_block">
			<div class="list_item<?php echo $class_name; ?>" style="cursor:pointer;" onclick="Core.List.openInfo(<?php echo $schema['id']; ?>)">
				<div style="color:<?php echo $status_color; ?>;">
					<?php echo $schema['name']; ?>
				</div>
			</div>
		</div>
		<div id="info-<?php echo $schema['id']; ?>" class="list_item_info_block">
			<div class="list_item_active" style="cursor:pointer;" onclick="Core.List.closeInfo()">
				<div style="color:<?php echo $status_color; ?>;">
					<?php echo $schema['name']; ?>
				</div>
			</div>
			<div style="padding:5px;">
				<div style="font-size:0.8em;">
					<b style="color:#2b6fb6;">Id:</b> <?php echo $schema['id']; ?>
					&nbsp;
					<b style="color:#2b6fb6;">Status:</b> <?php echo $status_title; ?>
				</div>
			</div>
			<div class="list_item_links">
				<a href="<?php echo BASE_URL; ?>schema/update/<?php echo $schema['id']; ?>" class="list_link">Edit</a>
				&nbsp;
				<a href="<?php echo BASE_URL; ?>schema/delete/<?php echo $schema['id']; ?>" class="list_link">Delete</a>
			</div>
		</div>
		<?php
		$cnt++;
	}
} else { ?>
	No schemas found
<?php } ?>